import request from '@/assets/js/request';
import util from '@/assets/js/public';
import { getToken } from '@/assets/js/auth';
import User from '@/store/modules/user';


//获取用户信息
export function getUserdata(params) {
    console.log('获取用户信息时的名字是：' + params.userName);
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/getCurrentUser$sso',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'noAction': '1',
                'versionName': '2.7.92',
                'kv': {
                    'versionName': '2.7.92',
                    'versionCode': 2079200,
                    'appcode': 'dict',
                    'currentUserCode': util.encrypt(params.userName),
                }
            }
        }
    )
}

export function myTaskToDo(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'queryActBusinessStatus$api$myTaskToDo',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                    'title': params.searchTitle,
                    'currentUserCode': util.encrypt(params.userName),
                },
            }
        }
    )
}
export function queryMyJoin(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'queryActBusinessStatus$api$queryMyJoin',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                    'title': params.searchTitle,
                    'currentUserCode': util.encrypt(params.userName),
                },
            }
        }
    )
}

export function queryMyPending(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'queryActBusinessStatus$api$queryMyPending',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                    'title': params.searchTitle,
                    'currentUserCode': util.encrypt(params.userName),
                },
            }
        }
    )
}

export function queryMyRead(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'queryActBusinessStatus$api$queryMyRead',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                    'title': params.searchTitle,
                    'currentUserCode': util.encrypt(params.userName),
                },
            }
        }
    )
}


//通用--获取表单所属id
export function getFormDetail(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'applicationFormEnhance$api$getFormDetail',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'processInstId': params.processInstId,
                    'workFlag': 'task',
                    'location': params.location,
                    'pmInsId': params.pmInsId,
                },
            }
        }
    )
}



//获取当前办理人信息
export function wfWorkItemModel(params) {
    console.log('BBBBBBBBBBBBB:' + params.workItemId)
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'wfWorkItemModel$api$findById',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'id': params.workItemId
                },
            }
        }
    )
}

//标前决策移动表单列表-融合能力甄别接口
export function findAllNoPage(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'abilityInfoTagg$api$findAllNoPage',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName)
                },
                'jsonName': 'appDecision',
                'appDecision': { 'businessId': params.businessId }
            }
        }
    )
}
export function getxxzdDetail(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'UsStudyMain$api$getFormDetail',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'pmInsId': params.pmInsId,
                    'processInstId': params.processInstId,
                    'workFlag': params.workFlag,
                    'currentUserCode': util.encrypt(params.userName),
                },
            }
        }
    )
}
export function getWfOptMags(params) {
    return request({
        url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
            'wfOptMsgModel$api$getWfOptMags?source=MOBILE',
        contentType: 'application/json;charset=UTF-8',
        data: {
            'access_token': getToken(),
            'appCode': 'dict',
            'currentUserCode': util.encrypt(params.userName),
            'versionName': '2.7.92',
            'kv': {
                'source': 'MOBILE',
                'currentUserCode': util.encrypt(params.userName),
                'receiptCode': params.processInstId,
            }
        }
    })
}

export function uploadProcessFiles(fd, params) {
    console.log('CCCCCCCCCC' + process.env.VUE_APP_UPFILE)
    return request({
        url: process.env.VUE_APP_URL + '/action/openapi/bps/common/uploadFile?pmInsType=A&pmInsTypePart=1&appcode=dict&currentUserCode='
            + util.encrypt(params.userName) + '&access_token=' + getToken(),
        contentType: 'multipart/form-data',
        data: fd,
        catch: true
    })
}

export function xxzdgetDecisions(params) {
    console.log('name:' + params.userName)
    var usrls = 'UsStudyMain$api$getDecisions';
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' + usrls + '?source=MOBILE',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'source': 'MOBILE',
                'kv': {
                    'currentUserCode': util.encrypt(params.userName),
                    'source': 'MOBILE',
                    'location': params.idcode.location,
                    'processInstId': params.idcode.processInstId,
                    'processDefName': params.idcode.processDefName,
                }
            }
        }
    )
}

export function xxzdgetNextUser(params) {
    console.log('name:' + params.userName)
    var usrls = 'UsStudyMain$api$getOrgAndUser';
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' + usrls + '?source=MOBILE',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'source': 'MOBILE',
                'kv': {
                    'currentUserCode': util.encrypt(params.userName),
                    'source': 'MOBILE',
                    'location': params.idcode.location,
                    'processInstId': params.idcode.processInstId,
                },
                'jsonName': 'appDecision',
                'appDecision': params.decisiondata
            }
        }
    )
}
export function xxzdGotoSubmitProcess(params) {
    console.log('name:' + params.userName)
    var usrls = 'UsStudyMain$api$startSubmitProcess';
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' + usrls + '?source=MOBILE',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'workItemId': params.idcode.workItemId,
                    'outcome': params.outcome,
                    'processInstId': params.idcode.processInstId,
                    'location': params.idcode.location,
                    'outcomeName': params.outcomeName,
                },
                'jsonName': 'appDecision',
                'appDecision': params.flowParam
            }
        }
    )
}
export function getxxzdTZDetail(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'UsStudyFile$api$findInfoById',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'id': params.taizhangId,
                },
            }
        }
    )
}

export function getWorkItems(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'queryProcessHistory$api$getWorkItems',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'processInstId': params.processInstId,
                },
            }
        }
    )
}
export function deleteFromdata(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'UsStudyMain$api$deleteDraft',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'pmInsId': params.pmInsId,
                    'currentUserCode': util.encrypt(params.userName),
                },
            }
        }
    )
}
export function xxzdSaveFrom(params) {
    console.log('name:' + params.userName)
    var usrls = 'UsStudyMain$api$saveDraft';
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' + usrls + '?source=MOBILE',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                },
                'jsonName': 'appDecision',
                'appDecision': params.flowParam
            }
        }
    )
}

// ----------------------收入确认接口-----------------------------
//获取收入确认流程表单详情和递交通用接口
export function getSrqrRequest(url, params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' + url + '?source=MOBILE',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': params.kv.currentUserCode,
                'versionName': '2.7.92',
                'kv': params.kv,
                'jsonName': 'appDecision',
                'appDecision': params.body
            }
        }
    )
}

/// 通用 上传附件
export function uploadFileCommon(fd, params) {
    return request({
        url: process.env.VUE_APP_URL + '/action/openapi/bps/common/uploadFile?pmInsType=' + params.pmInsType + '&pmInsTypePart=' + params.pmInsTypePart + '&appcode=dict&currentUserCode='
            + util.encrypt(params.userName) + '&access_token=' + getToken(),
        contentType: 'multipart/form-data',
        data: fd,
        catch: true
    })
}


/// 通用 获取下拉表单数据
export function getDictList(val, params) {
    return request({
        url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' + 'queryDictValue$api$queryByType',
        contentType: 'application/json;charset=UTF-8',
        data: {

            'access_token': getToken(),
            'appCode': 'dict',
            'currentUserCode': util.encrypt(params.userName),
            'versionName': '2.7.92',
            'kv': {
                'source': 'MOBILE',
                'currentUserCode': util.encrypt(params.userName),
                'dictType': val,
            }
        }
    })
}

// ---------------------- 5G项目 -----------------------------

/// 5G项目  表单详情接口
export function getFormByPmInsId(pmInsId) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'associationForFiveG$api$getFormByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(username),
                    'pmInsId': pmInsId
                }
            }
        }
    )
}




// ---------------------- 商机转项目 -----------------------------


// 商机转项目 -- 获取项目id(数据放在body 中)
// export function getFormDetail_bodyParams(params) {
//     let username = User.state.user.userName;
//     return request(
//         {
//             url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
//                 'applicationFormEnhance$api$getFormDetail',
//             contentType: 'application/json;charset=UTF-8',
//             data: {
//                 'access_token': getToken(),
//                 'appCode': 'dict',
//                 'currentUserCode': util.encrypt(userName),
//                 'versionName': '2.7.92',
//                 'kv': {
//                     'source': 'MOBILE',
//                     'currentUserCode': util.encrypt(userName)
//                 },
//                 'jsonName': 'appDecision',
//                 'appDecision': {
//                     'processInstId': params.processInstId,
//                     'workFlag': 'task',
//                     'location': params.location,
//                     'pmInsId': params.pmInsId,
//                 }
//             }
//         }
//     )
// }


/// 商机转项目 表单详情接口
export function getEsopBusinessToProjectByPmInsId(pmInsId) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'esopBusinessToProject$api$getEsopBusinessToProjectByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(username),
                    'pmInsId': pmInsId
                }
            }
        }
    )
}




// ----------------------获取标前决策（专业公司）-----------------------------

/// 获取标前决策（专业公司）表单详情接口
export function getDecisionByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'decision$api$getDecisionByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                },
            }
        }
    )
}

// 根据 workItemId 获取环节
export function getLocationNameById(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'wfWorkItemModel$api$findById',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'id': params.workItemId
                },
            }
        }
    )
}



// ----------------------获取标前决策（移动）-----------------------------

//获取标前决策（移动）表单详情接口
export function getDecisionMakingByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'decisionMaking$api$getDecisionMakingByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                },
            }
        }
    )
}


// ----------------------售中团队组建-----------------------------
// 获取售中团队组建 表单详情接口 1 
export function getSZTDZJFormDetail(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'applicationFormProject$api$getFormDetail',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'processInstId': params.processInstId,
                    'workFlag': 'task',
                    'location': params.location,
                    'pmInsId': params.pmInsId,
                },
            }
        }
    )
}

// 获取售中团队组建 表单详情接口
export function findOnSaleTeamModelByOnSaleTeamId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'onSaleTeamModel$api$findOnSaleTeamModelByOnSaleTeamId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'onSaleTeamId': params.onSaleTeamId
                },
            }
        }
    )
}



// ----------------------甄选公示审批申请-----------------------------
// 获取甄选公示审批申请 表单详情接口 1 
export function getZXGSSPFormDetail(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'applicationFormEnhance$api$getFormDetail',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'processInstId': params.processInstId,
                    'workFlag': 'task',
                    'location': params.location,
                    'pmInsId': params.pmInsId,
                },
            }
        }
    )
}

// 获取甄选公示审批申请 表单详情接口
export function selectPickResultsNoticeByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'pickResultNotice$api$selectPickResultsNoticeByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                },
            }
        }
    )
}


// ----------------------项目售前支撑-----------------------------

// 获取项目售前支撑 表单详情接口
export function getSynergySupportByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'synergySupportApply$api$getSynergySupportByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                },
            }
        }
    )
}

// 获取项目售前支撑 建议支撑单位 的汉字值
export function queryBySupportUnit(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'proSupport$api$queryBySupportUnit',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'type': '1',
                    'productCategory': params.productCategory,
                    'productName': params.productName
                },
            }
        }
    )
}

// 获取项目售前支撑 下一步校验
export function getPreTaskSyncByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'threeSupportAcceptance$api$getPreTaskSyncByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                },
            }
        }
    )
}



// ----------------------二次谈判-----------------------------

// 获取二次谈判 表单详情接口
export function byPmInsIdFindTwoNegotiation(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'pickTwoNegotiation$api$byPmInsIdFindTwoNegotiation',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                },
            }
        }
    )
}


// ----------------------售前团队组建-----------------------------

// 获取售前团队组建 表单详情接口
export function findSalePreTeamModelBySalePreTeamId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'salePreTeamModel$api$findSalePreTeamModelBySalePreTeamId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'salePreTeamId': params.salePreTeamId
                },
            }
        }
    )
}



//售前拜访表单详情接口
export function getBusinessVisitByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'businessVisit$api$getBusinessVisitByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                },
            }
        }
    )
}
//售前拜访获取当前办理人
export function getWfLinkTracks(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'wfLinkTrackModel$api$getWfLinkTracks',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'receiptCode': params.pmInsId
                },
            }
        }
    )
}

// ----------------------项目里程碑-----------------------------
// 获取项目里程碑表单详情接口
export function queryProjectMilestoneByProjectId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectMilestone$api$queryProjectMilestoneByProjectId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'projectId': params.projectId
                },
            }
        }
    )
}

// ----------------------项目交底-----------------------------
// 获取项目交底表单详情接口
export function getProjectDisclose(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectDisclosure$api$getProjectDisclose',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'esopBusinessId': params.esopBusinessId
                },
            }
        }
    )
}

// ----------------------项目立项申请-----------------------------
// 获取项目交底表单详情接口
export function getEstablishedProjectByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'establishedProject$api$getEstablishedProjectByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'processInstId': params.processInstId,
                    'workFlag': 'task',
                    'location': params.location,
                    'pmInsId': params.pmInsId,
                    'pmInsType': params.pmInsType,
                    'workItemId': params.workItemId
                },
            }
        }
    )
}

/// 获取合作伙伴甄选信息
export function hereProjectSelectPickModule(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'pickScheme$api$hereProjectSelectPickModule',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    'businessId': params.businessId
                },
            }
        }
    )
}


// ----------------------会议纪要-----------------------------

// 起草 编辑时选中会议纪要
// 获取 OA公文系统纪要列表
export function getMeetingListToOfficialDocument(params) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'decisionMaking$api$getMeetingListToOfficialDocument',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'currentUserCode': util.encrypt(username),
                    'source': 'MOBILE',
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                }
            }
        }
    )
}

// 获取 DICT系统关联会议纪要
export function getMeetingListToDictPage(params) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'decisionMaking$api$getMeetingListToDictPage',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'currentUserCode': util.encrypt(username),
                    'source': 'MOBILE',
                    'direction': 'desc',
                    'properties': 'modifiedTime',
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                }
            }
        }
    )
}





// ----------------------项目变更-----------------------------


// 起草 项目变更 获取”变更后里程碑节点“
export function milestoneFindAllByProjectId(projectID) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'milestone$api$findAllByProjectId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(username),
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    'projectID': projectID
                },
            }
        }
    )
}

// 起草 项目变更 获取 "效益评估"、"环节信息"
export function projectChangeModelFindByBusinessId(businessId) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectChangeModel$api$findByBusinessId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(username),
                    'businessId': businessId
                },
            }
        }
    )
}

// 起草 项目变更 获取 "合同信息"
export function projectChangeModelFindByProjectId(projectId) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectChangeModel$api$findByProjectId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(username),
                    'projectId': projectId
                },
            }
        }
    )
}

// 流程 项目变更详情接口
export function getProjectChangeByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectChangeModel$api$getProjectChangeByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                },
            }
        }
    )
}


// ----------------------项目进度-----------------------------

/// OCR识别 
/// 项目进度 进度证明材料（验收报告）的验证
export function sealCheckWithOCR(requestParam) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'sealCheck$api$sealCheck',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(username),
                },
                'jsonName': 'appDecision',
                'appDecision': requestParam,
            }
        }
    )
}


/// 获取 项目进度起草 需要的里程碑节点信息
export function verifyProjectMilestoneNodes(milestoneMode) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectMilestone$api$verifyProjectMilestoneNodes',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(username),
                },
                'jsonName': 'appDecision',
                'appDecision': milestoneMode,
            }
        }
    )
}


// 校验该项目是否可以 发起进度
export function checkProjectProcessStatus(projectId) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectProcessModel$api$checkProjectProcessStatus',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(username),
                    'projectId': projectId
                },
            }
        }
    )
}

// 项目进度 商机列表 获取项目是否可以 进度报送
export function findProjectStartModelByProjectID(projectID) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectStartModel$api$findProjectStartModelByProjectID',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(username),
                    'projectID': projectID
                },
            }
        }
    )
}

// 项目进度 进度列表
export function projectProcessModelFindAll(params) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectProcessModel$api$findAllList',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'currentUserCode': util.encrypt(username),
                    'source': 'MOBILE',
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    'page': params.page,
                    'rows': params.rows,
                    'projectID': params.projectId,
                    'enabled': params.enabled,
                }
            }
        }
    )
}

// 获取项目进度表单详情接口
export function findProjectProcessModelByProjectID(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectProcessModel$api$findProjectProcessModelByProjectID',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'projectProcessId': params.projectProcessId
                },
            }
        }
    )
}


// ----------------------项目开工-----------------------------

// 校验该项目是否可以 开工起草
export function checkProjectStartStatus(projectId) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectStartModel$api$checkProjectStartStatus',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(username),
                    'projectId': projectId
                },
            }
        }
    )
}

/// 获取项目所有的里程碑节点信息 
export function projectMilestoneFindAll(projectID) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectMilestone$api$findAllList',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(username),
                    'direction': 'desc',
                    'properties': 'createdTime',
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    'projectID': projectID
                },
            }
        }
    )
}

/// 获取需要的里程碑节点信息
export function verifyStartProjectMilestoneNodes(milestoneMode) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectMilestone$api$verifyStartProjectMilestoneNodes',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(username),
                },
                'jsonName': 'appDecision',
                'appDecision': milestoneMode,
            }
        }
    )
}

/// 获取发起人信息
export function findOnSaleTeamManageByProjectId(projectId) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'onSaleTeamModel$api$findOnSaleTeamManageByProjectId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(username),
                    'projectId': projectId
                }
            }
        }
    )
}


// 获取项目开工表单详情接口
export function findProjectStartModelByProjectStartId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectStartModel$api$findProjectStartModelByProjectStartId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'projectStartId': params.projectStartId
                },
            }
        }
    )
}


// ----------------------企业致信-----------------------------

// 获取查询列表
export function requestQYZXListData(urlChip, params) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' + urlChip,
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'currentUserCode': util.encrypt(username),
                    'source': 'MOBILE',
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    
                    // 1: 模糊查询 
                    keyType: params.keyType,    // 关键字类型
                    searchKey: params.searchKey,// 关键字
                    type: params.type,          // 企业分类

                    // 2. 精确查询
                    keyWord: params.keyWord,

                    // 3. 股权关系查询
                    // 4. 企业风险查询
                    uniscid: params.uniscid,    // 统一社会信用代码
                    entName: params.entName,   // 企业名称/个体工商户名称

                    // 5. 企业关联查询
                    attIds: params.attIds,
                    level: params.level,
                    projectCode: params.projectCode, 
                }
            }
        }
    )
}



// ----------------------项目交接-----------------------------

/** 
 *  获取 **列表
*/
export function requestPageListData(urlChip, kv, body) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' + urlChip,
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': kv,
                'jsonName': 'appDecision',
                'appDecision': body
            }
        }
    )
}

/** 
 *  获取起草 时跳转的 项目列表(可能其他流程也会用)
*/
export function requestDrawupProjectListData(urlChip, params) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' + urlChip,
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'currentUserCode': util.encrypt(username),
                    'source': 'MOBILE',
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                    'direction': 'desc',
                    'properties': 'modifiedTime',
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                    'projectID': params.projectID,      // 项目ID
                    'projectName': params.projectName,  // 项目name
                    'startDate': params.startDate,      // 创建时间范围的 起始值
                    'endDate': params.endDate,          // 创建时间范围的 终止值
                }
            }
        }
    )
}


// TODO: 项目交接 发起交接时的校验
// 校验项目资料交底 - us_project_disclosure
// 校验合同资料交底 - us_contract_disclose
export function processVerificationByTableAndParameters(projectId, tableName) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'processVerification$api$processVerificationByTableAndParameters',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(username),
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    'tableName': tableName,
                    'parameters': {
                        'projectID': projectId
                    },
                },
            }
        }
    )
}

// 获取签约效益评估（校验）
export function findByBusinessIdAndVerify(projectID) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'benefiteValuation$api$findByProjectIdAndVerify',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(username),
                    'projectId': projectID
                }
            }
        }
    )
}

// 项目交接 验收到期提醒推送
export function createDICTProjectAccRecordRmind(params) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectManage$api$createDICTProjectAccRecordRmind',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(username),
                },
                'jsonName': 'appDecision',
                'appDecision': params,
            }
        }
    )
}



// 获取 项目交接 表单详情接口
export function getProjectDelNewInformation(projectInformationId) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectInformation$api$getProjectDelNewInformation',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(username),
                    'projectInformationId': projectInformationId
                },
            },

        }
    )
}




// ----------------------用户信息-----------------------------

// TODO: 根据用户名查询用户信息
export function findByUsername(name) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/getCurrentUser$sso',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'noAction': '1',
                'versionName': '2.7.92',
                'kv': {
                    'versionName': '2.7.92',
                    'versionCode': 2079200,
                    'appcode': 'dict',
                    'currentUserCode': util.encrypt(name),
                }
            }
        }
    )
}


// ----------------------全省选人-----------------------------
/// TODO: 全省选人
export function allProvinceFindOneStep(orgCode) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'uums$sys$userinfo$findOneStep$api',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'noAction': '1',
                'kv': {
                    'currentUserCode': util.encrypt(username),
                    'source': 'MOBILE',
                    'appcode': 'dict',
                    'orgCode': orgCode,
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    'appcode': 'dict',
                    'orgCode': orgCode,
                },
            }
        }
    )
}





//获取部门下候选人
export function findOneStep(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'user$user$api$findOneStep',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'uums',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'appcode': 'uums',
                    'rows': '20',
                    'orgCode': params.orgCode,
                    'page': '1',
                    'currentUserCode': util.encrypt(params.userName),
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    'orgBussinessConfig': 'defaultBussiness',
                    'userBussinessConfig': 'defaultBussiness',
                },
            }
        }
    )
}

//售前-方案支撑表单详情接口
export function getSupportByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'support$api$getSupportByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                },
            }
        }
    )
}

// ----------------------合同交底流程-----------------------------
// 获取合同交底流程 表单详情接口
export function getMIFormDetail(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'applicationFormProject$api$getFormDetail',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'processInstId': params.processInstId,
                    'workFlag': 'task',
                    'location': params.location,
                    'pmInsId': params.pmInsId,
                    'pmInsType': params.pmInsType,
                },
            }
        }
    )
}

//开标关联表单详情接口
export function getOpenTaggingByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'openTagging$api$getOpenTaggingByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                },
            }
        }
    )
}

//线索转商机详情接口
export function getBusinessAddByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'businessAdd$api$getBusinessAddByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                },
            }
        }
    )
}

//校验商机名称是否可用getBusinessByBusinessName
export function getBusinessByBusinessName(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'businessAdd$api$getBusinessByBusinessName',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'businessName': params.businessName,
                    'businessId': params.businessId,
                },
            }
        }
    )
}


//开标关联获取县区列表
export function getCountyByParentOrgCode(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'tagging$api$getCountyByParentOrgCode',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'parentOrgCode': params.parentOrgCode,
                },
            }
        }
    )
}

//应标管理详情接口
export function getTaggingByPmInsIdDetails(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'tagging$api$getTaggingByPmInsIdDetails',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                },
            }
        }
    )
}
//应标管理的共性(重点)项目名称
export function queryByType(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'queryDictValue$api$queryByType',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                // 'currentUserCode':util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    // 'currentUserCode':util.encrypt(params.userName),
                    'dictType': params.dictType,
                },
            }
        }
    )
}
//方案创建详情接口
export function getPickByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'pickScheme$api$getPickByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                },
            }
        }
    )
}
//交资交维详情接口
export function queryJzjwInfoByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectJzjwModel$api$queryJzjwInfoByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                },
            }
        }
    )
}
//售中任务申请详情接口
export function getInitiateTaskByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'initiateTaskApply$api$getInitiateTaskByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                },
            }
        }
    )
}
//通用任务申请详情接口
export function getGeneralTaskApplyPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'generalTaskApply$api$getGeneralTaskApplyPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                },
            }
        }
    )
}
//权限申请详情接口
export function findQueryPermissionByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'queryPermission$api$findQueryPermissionByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                },
            }
        }
    )
}

//调账申请详情接口
export function getAccountRegulationByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'accountRegulation$api$getAccountRegulationByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                },
            }
        }
    )
}
//调账申请获取意见
export function processgetWfOptMags(params) {
    return request({
        url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
            'process$api$getWfOptMags?source=MOBILE',
        contentType: 'application/json;charset=UTF-8',
        data: {
            'access_token': getToken(),
            'appCode': 'dict',
            'currentUserCode': util.encrypt(params.userName),
            'versionName': '2.7.92',
            'kv': {
                'source': 'MOBILE',
                'currentUserCode': util.encrypt(params.userName),
                'processInstanceId': params.processInstId,
            }
        }
    })
}
//调账申请流程校验人员是否正常
export function verifyPersonDepartmentExists(url, params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' + url + '?source=MOBILE',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': params.kv.currentUserCode,
                'versionName': '2.7.92',
                'kv': params.kv,
                'jsonName': 'appDecision',
                'appDecision': params.body
            }
        }
    )
}
//CA借用详情接口
export function getCertificateFormByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'certificateForm$api$getCertificateFormByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                },
            }
        }
    )
}

//CA归还详情接口
export function getCertificateFormReturnByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'certificateFormReturn$api$getCertificateFormByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                },
            }
        }
    )
}
//获取关联商机列表
export function findWholeNetworkAll(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'businessAdd$api$findWholeNetworkAll',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'model': params.model,
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                    'businessAdd': params.businessId,
                    'projectName': params.projectName,
                    'currentUserCode': util.encrypt(params.userName),
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                    'businessAdd': params.businessId,
                    'projectName': params.projectName,
                }
            }
        }
    )
}
//获取中台能力列表
export function abilityInformationModefindAll(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'abilityInformationMode$api$findAll',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'direction': 'desc',
                    'properties': 'createdTime',
                    'type': 'XC',
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                    'currentUserCode': util.encrypt(params.userName),
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                    'abilityCode': params.abilityCode,
                    'abilityName': params.abilityName,
                    'abilityProvider': params.abilityProvider,
                }
            }
        }
    )
}

//获取大数据产品列表
export function bigDataProductsModefindAll(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'bigDataProductsMode$api$findAll',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'direction': 'desc',
                    'properties': 'createdTime',
                    'type': 'XC',
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                    'currentUserCode': util.encrypt(params.userName),
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                    'productClass': params.productClass,
                    'maProductName': params.maProductName,
                }
            }
        }
    )
}



/** 
 *  获取起草 时跳转的 商机列表
*/
export function requestDrawupSJListData(urlChip, params) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' + urlChip,
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': {
                    'currentUserCode': util.encrypt(username),
                    'source': 'MOBILE',
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                    'businessId': params.businessId,    // 商机ID
                    'projectID': params.projectID,      // 项目ID
                    'projectName': params.projectName,  // 项目name
                    'startDate': params.startDate,      // 创建时间范围的 起始值
                    'endDate': params.endDate,          // 创建时间范围的 终止值
                }
            }
        }
    )
}

/** 
 *  获取起草 时跳转的 商机列表2
*/
export function requestDrawupSJListData2(urlChip, params) {
    let username = User.state.user.userName;
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' + urlChip,
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(username),
                'versionName': '2.7.92',
                'kv': params.kv,
                'jsonName': 'appDecision',
                'appDecision': params.appDecision
            }
        }
    )
}
/// 获取 项目进度流程需要的拆分信息表格
export function getAnalysisByProjectEstablishNumberAndContractPhase(contractPhase,projectEstablishNumber,pmInsId) {
  let username = User.state.user.userName;
  return request(
      {
          url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
              'analysisIncome$api$getAnalysisByProjectEstablishNumberAndContractPhase',
          contentType: 'application/json;charset=UTF-8',
          data: {
              'access_token': getToken(),
              'appCode': 'dict',
              'currentUserCode': util.encrypt(username),
              'versionName': '2.7.92',
              'kv': {
                  'source': 'MOBILE',
                  'currentUserCode': util.encrypt(username),
                  'contractPhase': contractPhase,
                  'projectEstablishNumber': projectEstablishNumber,
                  'pmInsId': pmInsId,
              },
              'jsonName': 'appDecision',
              'appDecision': {
                'contractPhase': contractPhase,
                'projectEstablishNumber': projectEstablishNumber,
                'pmInsId': pmInsId,
              },
          }
      }
  )
}

//获取三化解决方案列表
export function findAllSolutionPlan(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'queryDictValue$api$findAllSolutionPlan',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                    'name': params.name,
                    'value': params.value,
                    'currentUserCode': util.encrypt(params.userName),
                    'dictType': 'includeSolution',
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                    'name': params.name,
                    'value': params.value,
                    'dictType': 'includeSolution',
                }
            }
        }
    )
}

//获取三化关联合同编号
export function getAssociationIncomeContract(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'esopBusinessToProjectContract$api$getAssociationIncomeContract',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                    'projectEstablishNumber': params.projectEstablishNumber,
                    'currentUserCode': util.encrypt(params.userName)
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    'page': params.page,
                    'rows': params.rows,
                    'size': params.size,
                    'projectEstablishNumber': params.projectEstablishNumber,
                }
            }
        }
    )
}

export function saveSolutionPreAmountInfo(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'solutionPreAmountInfo$api$saveSolutionPreAmountInfo',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': params.kv,
                'jsonName': 'appDecision',
                'appDecision': params.appDecision,
            }
        }
    )
}
//标签决策移动，获取AI解析数据
export function fileParsingRequestAnalysisFlowQuery(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'fileParsingRequestLogController$api$fileParsingRequestAnalysisFlowQuery',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'fileId': params.fileId
                },
                'jsonName': 'appDecision',
                'appDecision': { 'fileId': params.fileId }
            }
        }
    )
}

//上传附件并获取AI解析后的数据
export function fileParsingCurrencyHttp(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'fileParsingController$api$fileParsingCurrencyHttp',
            contentType: 'application/json;charset=UTF-8',
            timeout:300000,
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'fileId': params.fileId,
                    'businessId': params.businessId,
                    'projectId': params.projectId,
                    'analysisCode': params.analysisCode,
                },
                'jsonName': 'appDecision',
                'appDecision': { 'fileId': params.fileId,
                    'businessId': params.businessId,
                    'projectId': params.projectId,
                    'analysisCode': params.analysisCode,}
            }
        }
    )
}
//保存AI解析后的数据
export function saveFileParsingRequestLog(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'fileParsingRequestLogController$api$saveFileParsingRequestLog',
            contentType: 'application/json;charset=UTF-8',
            timeout:300000,
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    // 'id': params.id,
                    // 'fileId': params.fileId,
                    // 'detailData': params.detailData,
                },
                'jsonName': 'appDecision',
                'appDecision': { 'id': params.id,
                    'fileId': params.fileId,
                    'detailData': params.detailData,}
            }
        }
    )
}

//线索转商机县域组织
export function getPublicCountyCode(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'businessAdd$api$getPublicCountyCode',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'city': params.city
                },
                'jsonName': 'appDecision',
                'appDecision': { 'city': params.city}
            }
        }
    )
}

export function req(appCode,url, params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' + url + '?source=MOBILE',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': appCode,
                'currentUserCode': params.kv.currentUserCode,
                'versionName': '2.7.92',
                'kv': params.kv,
                'jsonName': 'appDecision',
                'appDecision': params.body
            }
        }
    )
}
//线索转商机详情接口
export function queryProjectContractAssetsById(params,id) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectContractAssets$api$queryProjectContractAssetsById',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'id': id
                },
            }
        }
    )
}
export function getRewardReviewNewByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'rewardReviewNew$api$getRewardReviewNewByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                }
            }
        }
    )
}
export function findSceneByPmIdNew(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'fusionAbilityTag$api$findSceneByPmIdNew',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                }
            }
        }
    )
}
export function getIncentiveDeclarationFromByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'incentiveDeclarationFrom$api$getIncentiveDeclarationFromByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'type': params.location
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    'pmInsId': params.pmInsId
                }
            }
        }
    )
}
export function queryTrack(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'incentiveDeclarationFrom$api$queryTrack',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'busiOpportunityNumber': params.busiOpportunityNumber,
                    'groupProjectCode': params.groupProjectCode,
                    'incentiveType': params.incentiveType
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    'busiOpportunityNumber': params.busiOpportunityNumber,
                    'groupProjectCode': params.groupProjectCode,
                    'incentiveType': params.incentiveType
                }
            }
        }
    )
}
export function getCountyCode(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'countryCityConversion$api$getCountyCode',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'cityName': params.cityName
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    'cityName': params.cityName
                }
            }
        }
    )
}
export function queryOneDictIndustry(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'queryDictValue$api$queryOneDictIndustry',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'all': false
                }
            }
        }
    )
}
export function getProductNameAndProductCode(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'signConfirmMatchup$api$getProductNameAndProductCode',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pageindex': 1,
                    'pagesize': 5000,
                    'productType': params.productType,
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    'pageindex': 1,
                    'pagesize': 5000,
                    'productType': params.productType
                }
            }
        }
    )
}
export function existArrearsAndRiskWarning(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'arrearageManagement$api$existArrearsAndRiskWarning',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'groupProjectCode': params.groupProjectCode,
                },
                'jsonName': 'appDecision',
                'appDecision': {
                    'groupProjectCode': params.groupProjectCode
                }
            }
        }
    )
}
export function getRewardReviewByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'rewardReview$api$getRewardReviewByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                }
            }
        }
    )
}
export function getProjectList(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectList$api$getProjectList',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                }
            }
        }
    )
}
export function getInfoByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectAudit$api$getInfoByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                }
            }
        }
    )
}
export function findProjectShutDownModelByProjectID(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectShutDownModel$api$findProjectShutDownModelByProjectID',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'projectID': params.projectID
                }
            }
        }
    )
}
export function selectShutDownAndRecoverInfoByProjectID(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'projectShutDownModel$api$selectShutDownAndRecoverInfoByProjectID',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'projectID': params.projectID
                }
            }
        }
    )
}
export function getPostponeApplicationByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'postponeApplication$api$getPostponeApplicationByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                }
            }
        }
    )
}
export function getTerminateApplyByPmInsId(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'terminateApply$api$getTerminateApplyByPmInsId',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'pmInsId': params.pmInsId
                }
            }
        }
    )
}
export function getMergeAbilityInfoList(params) {
    return request(
        {
            url: process.env.VUE_APP_URL + '/action/openapi/bps/common/transmit/' +
                'mergeAbilityInfo$api$getMergeAbilityInfoList',
            contentType: 'application/json;charset=UTF-8',
            data: {
                'access_token': getToken(),
                'appCode': 'dict',
                'currentUserCode': util.encrypt(params.userName),
                'versionName': '2.7.92',
                'kv': {
                    'source': 'MOBILE',
                    'currentUserCode': util.encrypt(params.userName),
                    'businessId': params.businessId
                },
                'jsonName': 'appDecision',
                'appDecision': { 'businessId': params.businessId}
            }
        }
    )
}